package cn.foolishbird.crow.enumeration;

import cn.foolishbird.crow.core.CrowEnum;
import cn.foolishbird.crow.enumeration.annotation.DefDictionary;
import cn.foolishbird.crow.enumeration.annotation.Dictionary;

import java.util.Objects;

/**
 * @author foolishbird
 */
@Dictionary(value = "Visible", name = "显示/隐藏")
public enum VisibleEnum implements CrowEnum {

    SHOW(1, "显示"),
    @DefDictionary
    HIDE(2, "隐藏");

    /**
     * 状态
     */
    private final Integer visible;

    /**
     * 状态说明
     */
    private final String content;

    VisibleEnum(Integer state, String content) {
        this.visible = state;
        this.content = content;
    }

    @Override
    public Integer value() {
        return this.visible;
    }

    @Override
    public String content() {
        return this.content;
    }

}
